package com.c6906.vdam.das.model.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author : TAOHUIQI @Date: 2024/6/22 15:20 @Description:公车基础数据_终端最新轨迹
 */
@Data
public class VehiclesLast {

    @ApiModelProperty(value = "终端唯一编号")
    private String terminalSn;

    @ApiModelProperty(value = "终端SIM卡号")
    private String simCard;

    @ApiModelProperty(value = "终端ACC状态，0：未激活，1：已激活")
    private String accStatusId;

    @ApiModelProperty(value = "终端是否定位，0：未定位，1：已定位")
    private String locationMark;

    @ApiModelProperty(value = "终端上报经度，以度为单位的纬度值乘以 10 的 6 次方，精确到百万分之一度")
    private double longitude;

    @ApiModelProperty(value = "终端上报纬度，以度为单位的纬度值乘以 10 的 6 次方，精确到百万分之一度")
    private double latitude;

    @ApiModelProperty(value = "终端上报海拔，米")
    private String elevation;

    @ApiModelProperty(value = "终端上报方向 1°")
    private String direction;

    @ApiModelProperty(value = "终端上报时间")
    private Date terminalTime;

    @ApiModelProperty(value = "定位时间")
    private Date locationTime;

    @ApiModelProperty(value = "终端上报里程, 0.1km")
    private double terminalMiles;

    @ApiModelProperty(value = "当日里程，每天00:00-23:59:59的里程累计,0.1km")
    private double todayMiles;

    @ApiModelProperty(value = "终端上报速度，1km/h")
    private double speed;

    @ApiModelProperty(value = "GNSS模块状态，0：无异常，1：GNSS模块异常")
    private int gnssModuleError;

    @ApiModelProperty(value = "GNSS天线开路状态，0：无异常，1：天线短路")
    private int gnssError;

    @ApiModelProperty(value = "GNSS天线短路状态，0：无异常，1：天线开路")
    private int gnssShort;

    @ApiModelProperty(value = "超速警告，0：无超速，1：超速")
    private int overSpeed;

    @ApiModelProperty(value = "终端掉电状态，0：无异常，1：终端掉电")
    private int powerDown;

    @ApiModelProperty(value = "区域编码")
    private String regionCode;

    @ApiModelProperty(value = "车辆编码")
    private String vehiclesCode;

    @ApiModelProperty(value = "车牌")
    private String vehPlateNum;

    @ApiModelProperty(value = "车辆所有权单位ID")
    private String ownUnitId;

    @ApiModelProperty(value = "车辆运营单位ID")
    private String useUnitId;

    @ApiModelProperty(value = "车辆性质id，字典表【车辆性质】")
    private String vehPropId;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "终端在线离线状态（1-在线 2-离线）")
    private int onlineStatus;

    @ApiModelProperty(value = "终端最后心跳时")
    private Date lastHeartbeatTime;

    @ApiModelProperty(value = "终端最后心跳时-str时间戳值")
    private String strLastHeartbeatTime;

    @ApiModelProperty(value = "是否删除，0-否，1-是")
    private int isDeleted;
}
